package com.example.demo.service.impl;

import com.example.demo.mapper.ScMapper;
import com.example.demo.pojo.Sc;
import com.example.demo.service.ScService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScServiceImpl implements ScService {
    @Autowired
    private ScMapper scMapper;

    @Override
    public List<Integer> selectStudentIdByCourseId(String courseId) {
        return scMapper.selectStudentIdByCourseId(courseId);
    }

    @Override
    public List<Sc> selectCourseByStudentId(Integer studentId) {
        return scMapper.selectCourseByStudentId(studentId);
    }
}